package de.fhin.mas.agents.manager.gui;

import java.util.Calendar;

public class LogDate {

	public static String getTime() {

		final Calendar c = Calendar.getInstance();

		String hour = "" + c.get(Calendar.HOUR_OF_DAY);
		String minute = "" + c.get(Calendar.MINUTE);
		String second = "" + c.get(Calendar.SECOND);

		if (hour.length() == 1)
			hour = "0" + hour;
		if (minute.length() == 1)
			minute = "0" + minute;
		if (second.length() == 1)
			second = "0" + second;

		return hour + ":" + minute + ":" + second;
	}
}
